package com.erb.entity;

/**
 * Created by MoYao on 2020/6/17.
 * 红包记录表
 */
public class Redpacketrecord {
	private int id;  //红包记录id
	private int uid;  //用户id
	private String name;  //红包名称（无门槛50元红包、新手红包等待）
	private String describe;  //红包描述（直接使用可提现、可做投资使用）
	private String exchangeCode;  //兑换码（一串英文和数字的组合）
	private double amount;  //红包金额（正数）
	private int rtype;  //类型（1、新手红包。2、无门槛红包。有门槛红包(3、满减。4、满减+指定项目类型。5、指定项目类型)等等）
	private double threshold;  //满减（满多少减多少，无满减为0）
	private int ptype;  //指定项目类型（无指定为0）
	private String deadline;  //截止时间
	private String exchangeTime;  //使用时间
	private int state;  //状态（1、未使用。2、已使用。3、已过期）

	@Override
	public String toString() {
		return "Redpacketrecord{" +
				"id=" + id +
				", uid=" + uid +
				", name='" + name + '\'' +
				", describe='" + describe + '\'' +
				", exchangeCode='" + exchangeCode + '\'' +
				", amount=" + amount +
				", rtype=" + rtype +
				", threshold=" + threshold +
				", ptype=" + ptype +
				", deadline='" + deadline + '\'' +
				", exchangeTime='" + exchangeTime + '\'' +
				", state=" + state +
				'}';
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getUid() {
		return uid;
	}

	public void setUid(int uid) {
		this.uid = uid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}

	public String getExchangeCode() {
		return exchangeCode;
	}

	public void setExchangeCode(String exchangeCode) {
		this.exchangeCode = exchangeCode;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public int getRtype() {
		return rtype;
	}

	public void setRtype(int rtype) {
		this.rtype = rtype;
	}

	public double getThreshold() {
		return threshold;
	}

	public void setThreshold(double threshold) {
		this.threshold = threshold;
	}

	public int getPtype() {
		return ptype;
	}

	public void setPtype(int ptype) {
		this.ptype = ptype;
	}

	public String getDeadline() {
		return deadline;
	}

	public void setDeadline(String deadline) {
		this.deadline = deadline;
	}

	public String getExchangeTime() {
		return exchangeTime;
	}

	public void setExchangeTime(String exchangeTime) {
		this.exchangeTime = exchangeTime;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}
}
